﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace SqlMapper.SqlElements
{
    /// <summary>
	/// Summary description for Conditional.
	/// </summary>
	[Serializable]
    public abstract class Conditional : BaseTag
    {

        #region Fields

        [NonSerialized]
        private string _compareValue = string.Empty;
        [NonSerialized]
        private string _compareProperty = string.Empty;

        #endregion

        /// <summary>
        /// CompareProperty attribute
        /// </summary>
        [XmlAttribute("compareProperty")]
        public string CompareProperty
        {
            get
            {
                return _compareProperty;
            }
            set
            {
                _compareProperty = value;
            }
        }


        /// <summary>
        /// CompareValue attribute
        /// </summary>
        [XmlAttribute("compareValue")]
        public string CompareValue
        {
            get
            {
                return _compareValue;
            }
            set
            {
                _compareValue = value;
            }
        }
    }
}
